<%@ page import="com.Text2" %>
<%@ page import="java.util.Arrays" %>
<%@ page import="java.io.PrintWriter" %><%--
  Created by IntelliJ IDEA.
  User: 范军建
  Date: 2022/3/28
  Time: 20:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<style type="text/css">
    img{
        width: 80px;
        height: 80px;
        display: flex;
    }
</style>
<body>
<%
    // 获得本页面已经被访问的次数
    Object temp= application.getAttribute("count");
    //本页面的访问次数
    int count=0;
    if(temp!=null){
        //页面不是第一次访问
        count=(Integer)temp;
        // 不是第一次访问,次数+1
        count++;
    }else {
        count = 1;
    }
    application.setAttribute("count",count);
%>
<h1>本页面的访问次数是:</h1><h1><%=count%></h1>

<%
    String ob[] = (String[]) request.getAttribute("succ");
    String su="";
    String ob1[] = (String[]) request.getAttribute("succ1");
    String su1="";


%>
<div style="display: flex">
    <div>
        <tr>
            <td>
                <%
                    for (int i=0;i<ob.length;i++){
                        if (ob[i] !=null){
                            su= ob[i];
                        }
                        out.println(su+"<br>" + "<br>" +  "<br>" + "<br>" );
                    }
                %>
            </td>

        </tr>
    </div>
   <div style="padding-top: 10px">
       <tr style="padding-top: 10px">
           <td style="padding-top: 10px">
               <%
                   for (int i=0;i<ob1.length;i++){
                       if (ob1[i] !=null){
               %>
               <label><img src="<%=ob1[i]%>"></label>
               <%
                       }
                   }
               %>
           </td>
       </tr>
   </div>



</div>


</body>
</html>
